package com.example.score.account;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@NoArgsConstructor
@Data
public class Referee extends Account{

    private List<Account> judges;

    public Referee(String account, String password, List<Account> judges) {
        super(account, password);
        this.judges = judges;
    }

    @Override
    public String toString() {
        return "Referee{" +
                "account='" + account + '\'' +
                ", password='" + password + '\'' +
                ", judges=" + judges +
                '}';
    }
}
